<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      ul {
        display: none;
      }
      input{
        display: none;
      }
      input:checked + ul {
        display: block;
      }
      @media (min-width: 700px) {
        ul {
          display: block;
        }
        span {
          display: none;
        }
      }
    </style>
  </head>
  <body>
    <label for="menu">
      <span>菜单</span>
    </label>
    <input type="checkbox" id="menu" />
    <ul>
      <li>首页</li>
      <li>首页</li>
      <li>首页</li>
      <li>首页</li>
    </ul>
  </body>
</html>
